package com.hmall.common.clients;

import com.hmall.common.dto.Address;
import com.hmall.common.dto.Order;
import com.hmall.common.dto.OrderDetail;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("orderservice")
public interface OrderClient {
    @GetMapping(value = "/order/{id}",produces = "application/json;charset=utf-8")
    Order queryOrderById(@PathVariable("id") Long orderId);
    @GetMapping(value = "/order/findOrderDetail/{orderId}",produces = "application/json;charset=utf-8")
    OrderDetail findOrderDetailByOrderId(@PathVariable("orderId") Long orderId);
    @GetMapping(value = "/order/status/{id}/{status}",produces = "application/json;charset=utf-8")
    void updateOrderStatus(@PathVariable("id") Long orderId,@PathVariable("status") Integer status);
}
